package com.rx.mylist.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.rx.core.anno.RxRelationField;
import com.rx.core.anno.RxRelationInfo;
import com.rx.core.data.RxData;
import com.rx.core.dbase.RxMarkDbMust;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@RxData
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class ListProductInfo extends RxMarkDbMust {
    private static final long serialVersionUID = 1L;

    public static final String AD_WORD = "AD_WORD";
    public static final String COMPANY_BID = "COMPANY_BID";


    public static final String ASS_COMPANY_BID="1";

    @TableField("STATUS")
    private String status;

    @TableField("TITLE")
    private String title;

    @TableField("SHOW_SQUARE")
    private String showSquare;

    @TableField("CODE")
    private String code;

    @TableField("NAME")
    private String name;

    @TableField("ORI_PRICE")
    private BigDecimal oriPrice;

    @TableField("PRICE")
    private BigDecimal price;


    @TableField("AD_WORD")
    private String adWord;

    @TableField("AD_IMAGE")
    private String adImage;

    @TableField("COMPANY_BID")
    @RxRelationField(value = {
            @RxRelationInfo(tableName = "list_company_info",fieldName = "bid",JudgeAppend="returnType=1"),
    })
    private String companyBid;

    @TableField("DESCRIPTION")
    private String description;

    @TableField("SORT")
    private Integer sort;

    @TableField("REMARK")
    private String remark;
}
